Integrand size = 24, antiderivative size = 76 \[ \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx=\frac {x \sqrt {a-b x^n} \sqrt {a+b x^n} \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},\frac {1}{2 n},\frac {1}{2} \left (2+\frac {1}{n}\right ),\frac {b^2 x^{2 n}}{a^2}\right )}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {259, 252, 251} \[ \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx=\frac {x \sqrt {a-b x^n} \sqrt {a+b x^n} \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},\frac {1}{2 n},\frac {1}{2} \left (2+\frac {1}{n}\right ),\frac {b^2 x^{2 n}}{a^2}\right )}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}} \]
[In]
[Out]
Rule 251
Rule 252
Rule 259
Rubi steps \begin{align*} \text {integral}& = \frac {\left (\sqrt {a-b x^n} \sqrt {a+b x^n}\right ) \int \sqrt {a^2-b^2 x^{2 n}} \, dx}{\sqrt {a^2-b^2 x^{2 n}}} \\ & = \frac {\left (\sqrt {a-b x^n} \sqrt {a+b x^n}\right ) \int \sqrt {1-\frac {b^2 x^{2 n}}{a^2}} \, dx}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}} \\ & = \frac {x \sqrt {a-b x^n} \sqrt {a+b x^n} \, _2F_1\left (-\frac {1}{2},\frac {1}{2 n};\frac {1}{2} \left (2+\frac {1}{n}\right );\frac {b^2 x^{2 n}}{a^2}\right )}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}} \\ \end{align*}
Time = 0.13 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.00 \[ \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx=\frac {x \sqrt {a-b x^n} \sqrt {a+b x^n} \operatorname {Hypergeometric2F1}\left (-\frac {1}{2},\frac {1}{2 n},1+\frac {1}{2 n},\frac {b^2 x^{2 n}}{a^2}\right )}{\sqrt {1-\frac {b^2 x^{2 n}}{a^2}}} \]
[In]
[Out]
\[\int \sqrt {a -b \,x^{n}}\, \sqrt {a +b \,x^{n}}d x\]
[In]
[Out]
Exception generated. \[ \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx=\int \sqrt {a - b x^{n}} \sqrt {a + b x^{n}}\, dx \]
[In]
[Out]
\[ \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx=\int { \sqrt {b x^{n} + a} \sqrt {-b x^{n} + a} \,d x } \]
[In]
[Out]
\[ \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx=\int { \sqrt {b x^{n} + a} \sqrt {-b x^{n} + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \sqrt {a-b x^n} \sqrt {a+b x^n} \, dx=\int \sqrt {a+b\,x^n}\,\sqrt {a-b\,x^n} \,d x \]
[In]
[Out]